package com.tigerhhzz.smail;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * <p>
 * Application
 * </p>
 *
 * @author tigerhhzz
 * @since 2024/8/12
 */
@EnableScheduling
@EnableTransactionManagement
@SpringBootApplication
@ComponentScan(basePackages = "com.tigerhhzz.smail")
@MapperScan(basePackages = "com.tigerhhzz.smail.**.dao")
public class SpringbootRabbitmqDemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootRabbitmqDemoApplication.class, args);
	}

	/**
	 * 短信队列
	 */
	@Bean
	public Queue smsQueue(){
		return new Queue("sms");
	}

}
